From 82ee0df472da19512c7e588bfc05e169d364e9d6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 3 Jun 1993 05:29:12 +0000 Subject: [PATCH] (x_wm_set_size_hint): Handle XGetNormalHints returning 0. --- src/xterm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 8ff27cbff38..ff203116e49 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4559,7 +4559,8 @@ x_wm_set_size_hint (f, prompting) { XSizeHints hints; /* Sometimes I hate X Windows... */ - XGetNormalHints (x_current_display, window, &hints); + if (XGetNormalHints (x_current_display, window, &hints) == 0) + hints.flags = 0; if (hints.flags & PSize) size_hints.flags |= PSize; if (hints.flags & PPosition) -- 2.30.2